@(simForm: Form[(String, String, String, String, String, String)])(implicit request: RequestHeader)

@import helper._
@import helper.twitterBootstrap._

@main(Html("Run a simulation"), currentPage="runSim") {
    
	
		
		@form(routes.Application.simulate)  {
		
		<fieldset>
			<legend> Grid Simulation Details: </legend>
		
			@select(
				simForm("simType"),
				options(List("noAutoSize","autoSize")),
				'_label -> "Auto Size Grid",
				'_default -> "-- Select Auto Size --",
				'_help -> "Grid dynamicly resizes or not.",
				'_error ->
				simForm("simType").error.map(_.withMessage("Please select auto size option"))
				   )
		
			@inputText(
				simForm("WorkerCount"),
				'_label -> "Worker Count",
				'_help -> "The number of workers",
				'_error -> simForm("WorkerCount").error.map(_.withMessage("Please specify number of workers"))
					)
		
			@inputText(
				simForm("JobCount"),
				'_label -> "Job Count",
				'_help -> "The amount of jobs",
				'_error -> simForm("JobCount").error.map(_.withMessage("Please specify number of jobs"))
					)
				  
			@inputText(
				simForm("ArrivalRate"),
				'_label -> "Arrival rate",
				'_help -> "The number of jobs to arrive per minute",
				'_error -> simForm("ArrivalRate").error.map(_.withMessage("Please specify arrival rate"))
					)
				  
			@inputText(
				simForm("avgLength"),
					'_label -> "Average length",
					'_help -> "The average length of a single job (seconds)",
					'_error -> simForm("avgLength").error.map(_.withMessage("Please specify average length"))
					)
		
			@select(
				simForm("ec2InstanceSize"),
					options(List("small","medium","large","extra-large")),
					'_label -> "EC2 instance size",
					'_help -> "Larger instances process faster but cost more",
					'_default -> "-- Select EC2 instance --",
					'_error ->
					simForm("ec2InstanceSize").error.map(_.withMessage("Please select ec2 instance size"))
					)
					
		</fieldset>
		
		<div class="actions">
			<input type="submit" class="btn primary" value="Simulate">
		</div>
		
		}  
}